<ion-view view-title="购物车">
    <ion-content>
		    <h1>查看购物车</h1>
		    <div class="col-md-12">
		        <table class="cart">
		            <tr class="row">
		                <th class="col">名称</th>
		                <th class="col">单价</th>
		                <th class="col">数量</th>
		                <th class="col">小计</th>
		            </tr>
		            <tr ng-repeat="item in cartList"  class="row">
                        <td class="col">{{item.title}}</td>
                        <td class="col">{{item.price}}</td>
                        <td class="row col">
                              <button class="btn btn-primary col" ng-click="cartJian(item.id)">-</button>
                              <input type="text" ng-model="item.num" class="col">
                              <button class="btn btn-primary col" ng-click="cartJia(item.id)">+</button>
                        </td>
                        <td class="col">{{item.price*item.num|currency:"RMB:":2}}</td>
                    </tr>
		        </table>
		    </div>
		    <div class="col-md-12">
		        <h2>总价：{{total|currency:"RMB:":2}}</h2>
		        <div class="text-right">
		            <button class="button button-block button-royal"
		                    ng-click="submitOrder()"
		            >提交订单</button>
		        </div>
		    </div>
    </ion-content>
</ion-view>
 <!--  -->